home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / TGCBOR20.ARJ / INTROPAK.COM / AUTOROT.C < prev    next >
Text File  |  1991-04-06  |  527b  |  36 lines

  1.  
  2.   /* -- Program to illustrate auto rotation of frames by using setautorotate.  */
  3.   /* -- Whichever frame is clicked on will move to the top.  */
  4.  
  5. #include "teglsys.h"
  6.  
  7. imagestkptr  fs;
  8.  
  9.  
  10.  
  11. void main(void)
  12. {
  13.  
  14.  
  15.  
  16.    easytegl();
  17.    easyout();
  18.  
  19.      /* -- create the first frame  */
  20.  
  21.    pushimage(1,1,100,100);
  22.    shadowbox(1,1,100,100);
  23.  
  24.      /* -- then create the second frame  */
  25.  
  26.    pushimage(50,50,150,150);
  27.    shadowbox(50,50,150,150);
  28.  
  29.    setautorotate(TRUE);
  30.  
  31.    teglsupervisor(); 
  32. }
  33.  
  34.  
  35.  
  36.